package com.deepinjava.dbbmlite;

import java.util.HashMap;
import java.util.Map;

import static com.deepinjava.dbbmlite.BenchMod.*;

public class MarkCalculation {
    private static final Map<BenchMod, long[]> markStand
            = new HashMap<BenchMod, long[]>() {{
            put(ADD, new long[]{50000, 1000});
//            put(EDIT, new long[]{40000, 1500});
            put(UPDATE, new long[]{100000, 500});
            put(SUM, new long[]{164203, 500});
            put(FIND, new long[]{64000, 500});
            put(DEL, new long[]{220000, 1000});
        }};
     public static long getMark(BenchMod mod,long rpm) {
         long mst = markStand.get(mod)[0];
         long wei = markStand.get(mod)[1];
         long mark = rpm*wei/mst ;
         return mark;
     }
};




